1·Also notice the presence of a Boolean variable named init.
另外还要注意名为init的Boolean变量的存在。
2·If two items need to switch places, a Boolean variable sort is set to true (lines 46, 49, 86, and 89).
如果两个项目需要调换位置,一个布尔排序变量将设置为true(第46、49、86和89行)。
3·Then create a boolean variable named secondDecision and set it as the output parameter of SecondApprovalTask, as shown in Figure 11.
然后创建一个名为 secondDecision 的布尔型变量,并将其设置为 SecondApprovalTask 的输出参数,如图 11 所示。
4·Also notice that you set a flag (the Boolean variable done) to identify when you reach the end of the content that you are interested in.
还需注意,您设置了一个标记(布尔变量done)来确定何时到达感兴趣内容的结束部分。
5·This version of the code adds a Boolean variable, inElement, which ensures that textual content is only picked up specifically for the element being dealt with.
这个版本的代码添加了一个布尔变量inelement,它保证只从所处理的元素中提取文字内容。
6·For example, in our scripting system we might have a global Boolean variable called PlayerArmed which will direct a cowardly troll to ambush only unarmed opponents.
例如,在我们的脚本系统中有一个控制着胆怯的巨人只是埋伏徒手的敌人(译者注:也可能指的是玩家)的全局布尔型变量。
7·The constructor for the SelectionListener implementation accepts a Boolean variable that defines whether the tree items are to be expanded or collapsed, depending on which button is selected.
SelectionListener 实现的构造函数接受一个布尔变量,该变量定义要展开还是折叠树项目,具体取决于选中了哪个按钮。
8·Comparing a variable having an atomic value (number, Boolean, or string) to another such variable or a literal atomic value, and expecting the type of one to be cast automatically to the other type.
把包含原子值(数字、布尔值或字符串)的变量和另一个此类变量或者文字原子值比较,希望一种类型自动转换成另一种类型。
9·The value you specify with a parameter can be a free-form string, a number (including specialized numeric values, such as IP addresses), a Boolean value, a variable, or a list.
您指定的参数Value可以是自由格式的字符串、数字(包括特殊数值,如IP地址)、boolean值、变量或列表。
10·In Listing 5, the test does not need to compare to a string because the variable returns a Boolean type rather than an RTF as a result of the select attribute.
在清单5中,测试不需要与字符串进行比较,因为变量返回一个Boolean类型而不是rtf作为select属性的结果。